package com.jasmine.bjstkserver.manager.os;

/**
 * @author jasmineXz
 */
public enum  OsTypeEnum {

    /** 阿里云OSS */
    ALIBABA("com.jasmine.bjstkserver.manager.os.AliOssManager"),
    /** 腾讯云COS */
    TENCENT("com.jasmine.bjstkserver.manager.os.TxCosManager")
    ;

    private String className;

    OsTypeEnum(String className) {
        this.className = className;
    }

    public String getClassName() {
        return className;
    }

    public static String getClassName(String osType) {
        for(OsTypeEnum osTypeEnum : OsTypeEnum.values()) {
            if (osType.equals(osTypeEnum.name())) {
                return osTypeEnum.getClassName();
            }
        }
        return ALIBABA.getClassName();
    }
}
